package io.renren.modules.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.entity.CommonContentEntity;
import io.renren.modules.business.dao.CommonContentDao;
import io.renren.modules.business.service.CommonContentService;
import org.springframework.stereotype.Service;

import java.util.Map;
@Service("commonContentService")
public class CommonContentServicelmpl  extends ServiceImpl<CommonContentDao, CommonContentEntity> implements CommonContentService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommonContentEntity> page = this.page(
                new Query<CommonContentEntity>().getPage(params),
                new QueryWrapper<CommonContentEntity>()
        );
        return new PageUtils(page);
    }
}
